package com.dx.common.table.ppt;

/**
 * AbstractBis_pm_itemId entity provides the base persistence definition of the
 * Bis_pm_itemId entity. @author MyEclipse Persistence Tools
 */

public class Bis_pm_itemId implements java.io.Serializable {

	// Fields

	private String tool_model_fk;
	private String pm_type_fk;
	private String data_dsc;

	// Constructors

	/** default constructor */
	public Bis_pm_itemId() {
	}

	/** full constructor */
	public Bis_pm_itemId(String tool_model_fk, String pm_type_fk,
			String data_dsc) {
		this.tool_model_fk = tool_model_fk;
		this.pm_type_fk = pm_type_fk;
		this.data_dsc = data_dsc;
	}

	// Property accessors

	public String getTool_model_fk() {
		return this.tool_model_fk;
	}

	public void setTool_model_fk(String tool_model_fk) {
		this.tool_model_fk = tool_model_fk;
	}

	public String getPm_type_fk() {
		return this.pm_type_fk;
	}

	public void setPm_type_fk(String pm_type_fk) {
		this.pm_type_fk = pm_type_fk;
	}

	public String getData_dsc() {
		return this.data_dsc;
	}

	public void setData_dsc(String data_dsc) {
		this.data_dsc = data_dsc;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_pm_itemId))
			return false;
		Bis_pm_itemId castOther = (Bis_pm_itemId) other;

		return ((this.getTool_model_fk() == castOther.getTool_model_fk()) || (this
				.getTool_model_fk() != null
				&& castOther.getTool_model_fk() != null && this
				.getTool_model_fk().equals(castOther.getTool_model_fk())))
				&& ((this.getPm_type_fk() == castOther.getPm_type_fk()) || (this
						.getPm_type_fk() != null
						&& castOther.getPm_type_fk() != null && this
						.getPm_type_fk().equals(castOther.getPm_type_fk())))
				&& ((this.getData_dsc() == castOther.getData_dsc()) || (this
						.getData_dsc() != null
						&& castOther.getData_dsc() != null && this
						.getData_dsc().equals(castOther.getData_dsc())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTool_model_fk() == null ? 0 : this.getTool_model_fk()
						.hashCode());
		result = 37
				* result
				+ (getPm_type_fk() == null ? 0 : this.getPm_type_fk()
						.hashCode());
		result = 37 * result
				+ (getData_dsc() == null ? 0 : this.getData_dsc().hashCode());
		return result;
	}

}